<%@ page import="linuxbox.common.*" %>

<%
	String LoginID = request.getParameter("Name");
	String Password = request.getParameter("Password");

	BoxSession sec = BoxSecurity.userLogin(LoginID, Password);
	//BoxSecurity s = new BoxSecurity();
	//BoxSession sec = s.userLogin(LoginID, Password);

	if (sec != null) {
		session = request.getSession(true);
		session.setAttribute("BoxSession", sec);
		//BoxSecurity.isLogin(session);
		sec = (BoxSession)session.getAttribute("BoxSession");
%>
<html>
<head>
<title>LinuxBox - Admin</title>
<LINK REL="stylesheet" HREF="/en/css/linuxbox.css" TYPE="text/css">
</head>
<frameset cols="124, *" border=0 frameborder=0 framespacing=0>
  <frame src="MainMenu.jsp" name="menu" leftmargin=0>
  <frame src="home.jsp" name="content">
</frameset>
</html>
<% 
	} else { 
		response.sendRedirect("AdminHome.html");
	} 
%>
